package net.maku.events.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.maku.system.entity.SysOrgEntity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 会员信息
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-15
 */
@Data
@Schema(description = "用户排行榜")
public class RankMemberUserVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "工会ID")
    @Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "unionAbbreviation", ref = "orgName")
    private Long orgId;

    @Schema(description = "工会名称")
    private String orgName;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "积分")
    private double points;

    @Schema(description = "排名")
    private Integer ranks;

    @Schema(description = "集卡数量")
    private long cardNumber;

    @Schema(description = "集卡最新时间")
    private LocalDateTime acquireCardTime;

    @Schema(description = "获取时间")
    private LocalDateTime time;

}